package com.sky.demo.entity;

import org.realogic.cfm.domain.KEntity;

/**
 * 单据条目-实体对象
 */
public class EntityItem implements KEntity {

	private static final long serialVersionUID = 7078755655568212246L;
	// 单据条目ID
	private Long id;
	// 单据ID
	private Long entityBillID;
	// 行号
	private int linevalue;
	// 物料ID
	private Long productID;
	// 货位ID
	private String storebinID;
	// 计量单位ID
	private Long uomID;
	// 计量单位
	private String uomName;
	// 数量
	private double quantity;
	// 单价
	private double price;
	// 批号
	private String batchCode;
	// 生产日期
	private java.sql.Date produceDate;
	// 状态
	private int status;
	// 件数备注
	private String remarkPiece;
	// 批次备注
	private String remarkBatch;
	// 备注
	private String remark;

	/******************* 关联对象 *******************/
	// 产品
	private EntityProduct product;
	// 单位
	private EntityUom uom;

	public EntityItem() {

	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long aId) {
		this.id = aId;
	}

	public Long getEntityBillID() {
		return this.entityBillID;
	}

	public void setEntityBillID(Long aEntityBillID) {
		this.entityBillID = aEntityBillID;
	}

	public int getLinevalue() {
		return this.linevalue;
	}

	public void setLinevalue(int aLinevalue) {
		this.linevalue = aLinevalue;
	}

	public Long getProductID() {
		return this.productID;
	}

	public void setProductID(Long aProductID) {
		this.productID = aProductID;
	}

	public String getStorebinID() {
		return this.storebinID;
	}

	public void setStorebinID(String aStorebinID) {
		this.storebinID = aStorebinID;
	}

	public Long getUomID() {
		return this.uomID;
	}

	public void setUomID(Long aUomID) {
		this.uomID = aUomID;
	}

	public String getUomName() {
		return this.uomName;
	}

	public void setUomName(String aUomName) {
		this.uomName = aUomName;
	}

	public double getQuantity() {
		return this.quantity;
	}

	public void setQuantity(double aQuantity) {
		this.quantity = aQuantity;
	}

	public double getPrice() {
		return this.price;
	}

	public void setPrice(double aPrice) {
		this.price = aPrice;
	}

	public String getBatchCode() {
		return this.batchCode;
	}

	public void setBatchCode(String aBatchCode) {
		this.batchCode = aBatchCode;
	}

	public java.sql.Date getProduceDate() {
		return this.produceDate;
	}

	public void setProduceDate(java.sql.Date aProduceDate) {
		this.produceDate = aProduceDate;
	}

	public int getStatus() {
		return this.status;
	}

	public void setStatus(int aStatus) {
		this.status = aStatus;
	}

	public String getRemarkPiece() {
		return this.remarkPiece;
	}

	public void setRemarkPiece(String aRemarkPiece) {
		this.remarkPiece = aRemarkPiece;
	}

	public String getRemarkBatch() {
		return this.remarkBatch;
	}

	public void setRemarkBatch(String aRemarkBatch) {
		this.remarkBatch = aRemarkBatch;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String aRemark) {
		this.remark = aRemark;
	}

	public void setProduct(EntityProduct theProduct) {
		this.product = theProduct;
	}

	public EntityProduct getProduct() {
		return product;
	}

	public void setUom(EntityUom theUom) {
		this.uom = theUom;
	}

	public EntityUom getUom() {
		return uom;
	}

	public String toString() {
		StringBuffer returnString = new StringBuffer();
		returnString.append("com.sky.demo.entity.EntityItem[");
		returnString.append("id = " + this.id + ";\n");
		returnString.append("entityBillID = " + this.entityBillID + ";\n");
		returnString.append("linevalue = " + this.linevalue + ";\n");
		returnString.append("productID = " + this.productID + ";\n");
		returnString.append("storebinID = " + this.storebinID + ";\n");
		returnString.append("uomID = " + this.uomID + ";\n");
		returnString.append("uomName = " + this.uomName + ";\n");
		returnString.append("quantity = " + this.quantity + ";\n");
		returnString.append("price = " + this.price + ";\n");
		returnString.append("batchCode = " + this.batchCode + ";\n");
		returnString.append("produceDate = " + this.produceDate + ";\n");
		returnString.append("status = " + this.status + ";\n");
		returnString.append("remarkPiece = " + this.remarkPiece + ";\n");
		returnString.append("remarkBatch = " + this.remarkBatch + ";\n");
		returnString.append("remark = " + this.remark + ";\n");
		returnString.append("]\n");
		return returnString.toString();
	}

	/******************* 辅助方法 *******************/
	/*
	 * 实体Key字符
	 */
	public String getKey() {
		if (id == null || id == 0) {
			return null;
		} else {
			return String.valueOf(id);
		}
	}
}